package com.foreknow.dao.impl;

import com.foreknow.db.DBManager;
import com.foreknow.db.JdbcTemplate;
import com.foreknow.mapping.MappingFactory;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import java.sql.Connection;

public class BaseDao {
    protected JdbcTemplate jdbcTemplate = JdbcTemplate.getInstance();
    protected MappingFactory mappingFactory = MappingFactory.getInstance();
    protected Log logger = LogFactory.getLog("DAOLogger");

    public void setConnection(Connection connection){
        jdbcTemplate.setConnection(connection);
    }
}












